import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/Jclist/getList',
    method: 'get',
    params: query
  })
}
export function jcList(query) {
  return request({
    url: '/Cdfp/getList',
    method: 'get',
    params: query
  })
}

//执行任务
export function Addrw(data) {
  return request({
    url: '/Jclist/addrw',
    method: 'post',
    data
  })
}


export function fetchArticle(id) {
  return request({
    url: '/vue-element-admin/Jclist/detail',
    method: 'get',
    params: { id }
  })
}

export function fetchPv(pv) {
  return request({
    url: '/vue-element-admin/article/pv',
    method: 'get',
    params: { pv }
  })
}

export function createArticle(data) {
  return request({
    url: '/Jclist/getAdd',
    method: 'post',
    data
  })
}

export function updateArticle(data) {
  return request({
    url: '/Khfp/getEdit',
    method: 'post',
    data
  })
}
export function getDel(data) {
  return request({
    url: '/Khfp/getDel',
    method: 'post',
    data
  })
}
export function getListAll(data) {
  return request({
    url: '/Jclist/getListAll',
    method: 'post',
    data
  })
}
